package org.adream.account.service;

import org.adream.account.dao.LogRestfulDao;
import org.adream.account.service.async.LogRestfulEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogRestfulService {
	
	private final static Logger logger = LoggerFactory.getLogger(LogRestfulService.class);

	@Autowired
	private LogRestfulDao dao;
	
	/**
	 * 增加restful调用日志
	 * @param entity
	 * @return
	 */
	public int addEntity(LogRestfulEntity entity) {
		return dao.addEntity(entity);
	}
}